 package com.lj.mcore.entity;

  import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;
 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_goods_returnitem")
 public class GoodsReturnItem extends IdEntity
 {
 
   @OneToOne(fetch=FetchType.LAZY)
   private Goods goods;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private GoodsReturn gr;
 
   @ManyToMany(cascade={CascadeType.ALL})
   @JoinTable(name="shopping_return_gsp", joinColumns={@JoinColumn(name="item_id")}, inverseJoinColumns={@JoinColumn(name="gsp_id")})
   private List<GoodsSpecProperty> gsps = new ArrayList();
 
   @Lob
   @Column(columnDefinition="LongText")
   private String spec_info;
   private int count;
 
   public Goods getGoods() { return this.goods; }
 
   public void setGoods(Goods goods)
   {
     this.goods = goods;
   }
 
   public GoodsReturn getGr() {
     return this.gr;
   }
 
   public void setGr(GoodsReturn gr) {
     this.gr = gr;
   }
 
   public List<GoodsSpecProperty> getGsps() {
     return this.gsps;
   }
 
   public void setGsps(List<GoodsSpecProperty> gsps) {
     this.gsps = gsps;
   }
 
   public String getSpec_info() {
     return this.spec_info;
   }
 
   public void setSpec_info(String spec_info) {
     this.spec_info = spec_info;
   }
 
   public int getCount() {
     return this.count;
   }
 
   public void setCount(int count) {
     this.count = count;
   }
 }



 
 